/*
 * BackupBO.java
 *
 * Created on March 23, 2007, 5:59 PM
 *
 */

package edu.byu.isys413.group1E.data;

import edu.byu.isys413.group1E.handlers.*;

/** BackupBO contains the information for a Backup Revenue Source.
 *  This class extends the RevenueSourceBO to obtain the common
 * elements for revenue sources.
 *
 * @author Travis Kulbeth
 */
public class BackupBO extends RevenueSourceBO{
    
    private double buSize;
    private String beginDate;
    private String endDate;
    
    /** Creates a new instance of BackupBO */
    public BackupBO() {
        this.setType("backup");
    }
    
    /** Creates a new instance of BackupBO
     *with a unique identifier.
     *
     *@param id contains the unique id for this Backup RevSrc.
     */
    public BackupBO(String id){
        this.setIsDirty(true);
        this.setRevSrcID(id);
        this.setType("backup");
    }
    
    /** Returns the size of the backup.
     *@return buSize
     */
    public double getBuSize() {
        return buSize;
    }
    
    /** Sets the backup size for this rev. src.
     *@param buSize contains the size for this backup.
     */
    public void setBuSize(double buSize) {
        this.setIsDirty(true);
        this.buSize = buSize;
    }
    
    /** Returns the begin date for the backup
     *@return beginDate
     */
    public String getBeginDate() {
        return beginDate;
    }
    
    /** Sets the beginDate for this backup.
     *@param beginDate contains the beginning date for this backup
     */
    public void setBeginDate(String beginDate) {
        this.setIsDirty(true);
        this.beginDate = beginDate;
    }
    
    /** Returns the endDate for this backup
     *@return endDate
     */
    public String getEndDate() {
        return endDate;
    }
    
    /** Sets the endDate for this backup
     *@param endDate contains the ending date for this backup.
     */
    public void setEndDate(String endDate) {
        this.setIsDirty(true);
        this.endDate = endDate;
    }
}
